<?php

/**
 * @author Argel Cabalag
 * @copyright 2009
 */
?>

<br />

<div class = "formlayout">

	<h3>Passenger (PX) &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  <a href="<?php echo url_for('px/new') ?>">ADD</a></h3>
	<table class="display" id="px_table">
	  <thead>
	    <tr>
	      <th>PXID NO.</th>
	      <th>PX Name</th>
	      <th>Under MC No.</th>
	      <th>Client Since</th>
	    </tr>
	  </thead>
	    <tbody>
		    <?php foreach ($px_list as $px): ?>
		    <tr>
		      <td><a href="<?php echo url_for('px/show?id='.$px['id']) ?>"><?php echo $px->getid() ?></a></td>
		      <td><?php echo $px->getfirst_name().' '.$px->getlast_name(); ?></td>
		      <td><center><?php echo $px->getClient()->getmc_no(); ?></center></td>
		      <td><?php echo $px->getcreated_at() ?></td>
		    </tr>
		    <?php endforeach; ?>
	  </tbody>
	</table>
	<br />
	  <a href="<?php echo url_for('px/new') ?>">ADD</a>
	  <br />
	  <br />
 
</div>
<script type="text/javascript">
jQuery(document).ready(jQuery(function() {
	jQuery('#px_table').dataTable();
} ));


</script>